package cn.sccdlg.spring5.service.impl;

import cn.sccdlg.spring5.dao.AccountDao;
import cn.sccdlg.spring5.dao.impl.AccountDaoImpl;
import cn.sccdlg.spring5.service.AccountService;

/**
 * @author RaoShuang
 * @emil 991207823@qq.com
 * @date 2020/10/17 21:18
 * 账户的业务层实现类
 */
public class AccountServiceImpl implements AccountService {
    /** 待解决的强依赖实现接口*/
    private AccountDao accountDao = new AccountDaoImpl();

    public AccountServiceImpl() {
        System.out.println("AccountServiceImpl对象创建了");
    }

    @Override
    public void saveAccount() {
        accountDao.saveAccount();
    }
}
